package com.xjx.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class YMLInfoController {
    @Value("${my.mood.author}")
    private String author;
    @Value("${my.mood.today}")
    private String today;

    @GetMapping("/getALL")
    public List<String> getALL(){
        return List.of(author,today);
    }
    @GetMapping("/getAuthor")
    public String getAuthor(){
        return author;
    }


}
